-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: AXI_XBAR parameters #157
base: master
Are you sure you want to change the base?
Conversation
Very nice, thanks already!
You need to move |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Essentially LGTM in a high-level review, thanks a lot!
/// [in flight](doc/#in-flight) at the same time. | ||
parameter int unsigned SlvPortMaxTxns = 32'd0, | ||
/// Maximum number of open transactions each slave connected to the crossbar can have | ||
/// [in flight](../doc#in-flight) per ID at the same time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either this link or the one above is off, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that both are not working. So the referenced document also has to go into the docs/ folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see; because the link should go to https://github.com/pulp-platform/axi/tree/master/doc#in-flight, which is part of the repository, not of the documentation tree.
What we probably want is to add this information to the index document of the documentation. That is, https://pulp-platform.github.io/axi/master/index.html should contain a Terminology section, to which we can then link. The relative reference to the definition in the index would be index#in-flight
.
/// Configuration for `axi_xbar`. | ||
typedef struct packed { | ||
/// Number of slave ports of the crossbar. | ||
/// This many master modules are connected to it. | ||
int unsigned NoSlvPorts; | ||
/// Number of master ports of the crossbar. | ||
/// This many slave modules are connected to it. | ||
int unsigned NoMstPorts; | ||
/// Maximum number of open transactions each master connected to the crossbar can have in | ||
/// flight at the same time. | ||
int unsigned MaxMstTrans; | ||
/// Maximum number of open transactions each slave connected to the crossbar can have in | ||
/// flight at the same time. | ||
int unsigned MaxSlvTrans; | ||
/// Determine if the internal FIFOs of the crossbar are instantiated in fallthrough mode. | ||
/// 0: No fallthrough | ||
/// 1: Fallthrough | ||
bit FallThrough; | ||
/// The Latency mode of the xbar. This determines if the channels on the ports have | ||
/// a spill register instantiated. | ||
/// Example configurations are provided with the enum `xbar_latency_e`. | ||
xbar_latency_e LatencyMode; | ||
/// AXI ID width of the salve ports. The ID width of the master ports is determined | ||
/// Automatically. See `axi_mux` for details. | ||
int unsigned AxiIdWidthSlvPorts; | ||
/// The used ID portion to determine if a different salve is used for the same ID. | ||
/// See `axi_demux` for details. | ||
int unsigned AxiIdUsedSlvPorts; | ||
/// AXI4+ATOP address field width. | ||
int unsigned AxiAddrWidth; | ||
/// AXI4+ATOP data field width. | ||
int unsigned AxiDataWidth; | ||
/// The number of address rules defined for routing of the transactions. | ||
/// Each master port can have multiple rules, should have however at least one. | ||
/// If a transaction can not be routed the xbar will answer with an `axi_pkg::RESP_DECERR`. | ||
int unsigned NoAddrRules; | ||
} xbar_cfg_t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This struct
can be removed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still used in axi_lite_xbar
.
f5f421f
to
670f5fc
Compare
Added the |
Yes |
Seems however that the link to the .png in line |
Is there a possibility to check the pipeline status of a failing gitlab-ci? Just to check if the ci failed on a stall due to a functional failing module, or that the timeout time was not long enough and the ci was still simulating. |
You need to remove the
Only if you have access to the mirrored repository on which CI runs. For this branch, the timeout was too low, because the crossbar simulated for more than 3 hours. -- Why is that? |
The simulation script currently has 5 different parameters which each get checked for two values in the script. This equates to 32 simulation runs. In the tb each instantiated rand_master completes 100 read and 100 write bursts. However the wider tb configurations run quite slow as there is a lot going on (e.g. 6 slv_ports, 9 mst_ports). Adding new the I could tune down the numbers though, e.g. to less Would it be reasonable to split the script for Also similar issue will be in #33, there are at least 5 parameters which should be checked in range by the ci. |
The documentation for `axi_xbar` is now auto generated from the source file. The diagram has been moved to docs:. It is no longer necessary to keep these files.
670f5fc
to
1927ea0
Compare
Just seen: As is |
This is a first WIP to update
axi_xbar
according to #153.I also added and adapted the documentation that was in
doc/axi_xbar.md
for inline for auto generation.The doc file therefore should probably be removed when this is merged to prevent documentation duplication.
axi_xbar
, added inline documentation.scripts/run_vsim.sh
tb_axi_xbar_pkg
to errorsThe
axi_pkg::xbar_cfg_t
struct is still in as it is currently used inaxi_lite_xbar
also and can be removed when its ports are updated.Edit: Also when looking at https://pulp-platform.github.io/axi/xbar_parameters/module.axi_xbar.html the link to doc/axi_xbar.png is currently broken. How do I link properly tho the image in the inline documentation?